import cv2
import numpy as np

img = np.zeros((480,680,3),np.uint8)
cv2.line(img,(10,10),(30,100),(0,255,0),8,8)
cv2.imshow('img',img)
cv2.waitKey(0)